<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="google-site-verification" content="yaeorbXgKPwp5BDegBtAJEHYWFEFE-BViWTj74gJPrw" />
<!--  -->
<link href="/css/default.css" type="text/css" rel="stylesheet" />
<!--  -->
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/lang/cn.js"></script>
<script type="text/javascript" src="/js/mac/core.min.js"></script>
<title>JQuery MagicTabs 的基本使用</title>
<meta name="description" content="JQuery MagicTabs 的基本使用" />
<meta name="keywords" content="JQuery Dialog Plugin" />
<script type="text/javascript" src="/js/jquery/ui.js"></script>
<script type="text/javascript" src="/js/mac/webapp.min.js"></script>
<link href="/css/default/mac/dialog/dialog.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/mac/dialog.min.js"></script>
<script type="text/javascript">
$(function(){
	$('#nav_jump').change(function(){
		location = './' + this.value + '.html';
	}).val('basic');
	$('.demoSource').val($('#demo').html());
});
</script>
</head>
<body>
<div id="head">
	<a href="/"><img src="/css/images/logo_s.png" alt="logo" /></a>
	<div class="title">BOARSOFT.COM</div>
	<div class="right">
		<div>
			<a href="/public/lang.php?l=en">English</a>
			|
			<a href="/public/lang.php?l=cn">简体中文</a>
			|
			<a href="http://activemq.apache.org/" target="_blank">ActiveMQ</a>
			|
			<a href="https://redis.io/" target="_blank">Redis</a>
			|
			<a href="http://www.jquery.com/" target="_blank">JQuery</a>
		</div>
	</div>
</div><div id="nav">
	<div id="nav_path">
		<a href="/">Home</a>
		&gt;
		<a href="/mac/js/dialog">JQuery MagicDialog</a>
		&gt;
		JQuery MagicDialog 基础示例	</div>
	<div id="nav_back">
		<a href="/mac/js/dialog/doc" target="_blank">文档</a>
		|
		<a href="javascript:history.back()">后退</a>
		|
		<a href="/mac/js/dialog/dl/basic.html">下载</a>
		|
		<select id="nav_jump">
			<option value="basic">JQuery MagicDialog 基础示例</option>
		</select>
		&nbsp;&nbsp;
	</div>
	<div class="clear"></div>
</div>
<div class="demoInfo">
	<h2 class="demoTitle">JQuery MagicDialog 基础示例</h2>
</div>
<div id="demo" class="demoPanel"><script type="text/javascript">
$(function(){
$('.dlgDemoBtn').click(function(){
	var el = $(this), act = el.attr('action');
	switch(act){
		case 'basic':
			$('<div></div>').mac('dialog',{
				title: 'Hello!',
				model: true,
				autoOpen: true,
				width: 200,
				draggable: true,
				el: '<p>Hello world!</p><p>I\'m MagicDialog!</p>'
			});
			break;
		case 'extended':
			mac.opendlg({
				title: 'Hello!',
				message: 'Press {0} can close me.',
				params: ['<b>ESC/Enter</b>'],
				buttons: [{
					text: 'OK',
					click: function(d){
						d.close();
					}
				}]
			});
			break;
		case 'wait': 
			var h = mac.wait('Count 3 sec to close.');
			window.setTimeout(function(){
				h.close();
			}, 3000);
			break;
		case 'alert': 
			mac.alert('Hello!');
			break;
		case 'confirm': 
			mac.confirm('<p>Are you sure?</p>', function(){
				alert('You clicked yes!');
			}, null);
			break;
		case 'customize': 
			mac.confirm('<p>Are you sure?</p>', null, null, [{
				text: 'Close',
				click: function(d){
					d.close();
				}
			},{
				text: 'Yes, I\'m sure?',
				click: function(d){
					d.close();
				}
			}]);
			break;
	}
});
});
</script>
<button class="dlgDemoBtn" action="basic">Basic</button>
<button class="dlgDemoBtn" action="extended">Extended</button>
<button class="dlgDemoBtn" action="wait">Spinner</button>
<button class="dlgDemoBtn" action="alert">Alert</button>
<button class="dlgDemoBtn" action="confirm">Confirm</button>
<button class="dlgDemoBtn" action="customize">Customize</button></div>
<textarea class="demoSource" wrap="off"></textarea>
<iframe src="/mac/js/related.php" class="related"></iframe>
<div id="foot">
Copyright © 2011. All rights reserved&nbsp;&nbsp;蜀ICP备11014774号-1&nbsp;&nbsp;
QQ: 7213571&nbsp;&nbsp;E-mail: pyh_jerry@163.com&nbsp;&nbsp;
<!-- 
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ffc0b0282216be3d16055855d8c0e72d9' type='text/javascript'%3E%3C/script%3E"));
</script>
&nbsp;&nbsp;
 -->
</div></body>
</html>
